package com.runen.wnhz.runen.data.entity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2018-04-24.
 */

public class LessonIntroductionEntity implements Serializable {

    /**
     * @return string re    =>0
     * @return string info  =>课程下架或不存在
     * @return string re    =>1
     * @return string info  =>获取成功
     * @return object data  =>返回信息集
     * @return string data.pic  =>封面图片
     * @return int    data.lid  =>课程id
     * @return string data.title  =>课程标题
     * @return float  data.star  =>课程星评
     * @return int    data.learn_man  =>在学人数
     * @return string data.discount  =>折扣
     * @return float  data.price  =>价格
     * @return string data.des  =>课程介绍
     * @return string data.use_mans  =>适用人群
     * @return int    data.is_file  =>是否包含资料 0包含 1不包含
     * @return int    data.materialList.0.lid  =>资料id
     * @return int    data.materialList.0.title  =>资料标题
     * @return string data.materialList.0.pic  =>资料图片
     * */

    /**
     * {"re": "1",
     * "info": "获取成功",
     * "data": {
     * "lid": "2",
     * "title": "VR+可视化学习的未来",
     * "star": "1.5",
     * "learn_man": "0",
     * "discount": "无折扣",
     * "price": "660",
     * "des": "付费 会员配置 修改付费",
     * "use_mans": "付费 会员配置 修改付费付费 会员配置 修改付费付费 会员配置 修改付费付费 会员配置 修改付费",
     * "is_file": "0",
     * "materialList": [
     * {
     * "lid": "1",
     * "title": "付费 会员配置 修改付费",
     * "pic": "http://runen.unohacha.com/Uploads/Picture/uploads/20180418/5ad72dde9ac11.jpg"
     * },{......}]}
     * }
     */

    private String pic;
    private String lid;
    private String title;
    private String star;
    private String learn_man;
    private String discount;
    private String price;
    private String des;
    private String use_mans;
    private String is_file;
    private String have_file;
    private String want_learn;
    private List<ListBean> materialList;

    public String getPic() {
        return pic;
    }

    public String getWant_learn() {
        return want_learn;
    }

    public void setWant_learn(String want_learn) {
        this.want_learn = want_learn;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getLid() {
        return lid;
    }

    public void setLid(String lid) {
        this.lid = lid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getStar() {
        return star;
    }

    public void setStar(String star) {
        this.star = star;
    }

    public String getLearn_man() {
        return learn_man;
    }

    public void setLearn_man(String learn_man) {
        this.learn_man = learn_man;
    }

    public String getDiscount() {
        return discount;
    }

    public void setDiscount(String discount) {
        this.discount = discount;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public String getUse_mans() {
        return use_mans;
    }

    public void setUse_mans(String use_mans) {
        this.use_mans = use_mans;
    }

    public String getIs_file() {
        return is_file;
    }

    public void setIs_file(String is_file) {
        this.is_file = is_file;
    }

    public String getHave_file() {
        return have_file;
    }

    public void setHave_file(String have_file) {
        this.have_file = have_file;
    }

    public List<ListBean> getMaterialList() {
        return materialList;
    }

    public void setMaterialList(List<ListBean> materialList) {
        this.materialList = materialList;
    }



    public static class ListBean {
        /**
         * tid : 2
         * title : 描写梅花的美文
         * views : 1
         * timg : https://www.meiwen.com.cn/uploads/1803/20180324113919646.jpg
         */

        private String lid;
        private String title;
        private String pic;

        public String getLid() {
            return lid;
        }

        public void setLid(String lid) {
            this.lid = lid;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getPic() {
            return pic;
        }

        public void setPic(String pic) {
            this.pic = pic;
        }

        @Override
        public String toString() {
            return "ListBean{" +
                    "lid='" + lid + '\'' +
                    ", title='" + title + '\'' +
                    ", pic='" + pic + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "LessonIntroductionEntity{" +
                "pic='" + pic + '\'' +
                ", lid='" + lid + '\'' +
                ", title='" + title + '\'' +
                ", star='" + star + '\'' +
                ", learn_man='" + learn_man + '\'' +
                ", discount='" + discount + '\'' +
                ", price='" + price + '\'' +
                ", des='" + des + '\'' +
                ", use_mans='" + use_mans + '\'' +
                ", is_file='" + is_file + '\'' +
                ", have_file='" + have_file + '\'' +
                ", want_learn='" + want_learn + '\'' +
                ", materialList=" + materialList +
                '}';
    }
}
